using System;
class CatEnv : Env
{
    public CatEnv(string catHome)
    {
        Environment.SetEnvironmentVariable(@"CATALINA_HOME", catHome, EnvironmentVariableTarget.Machine);
        //Console.WriteLine(Environment.ExpandEnvironmentVariables(@"%CATALINA_HOME%"));
    }
    ~CatEnv()
    {
        Environment.SetEnvironmentVariable(@"CATALINA_HOME", null, EnvironmentVariableTarget.Machine);
    }
    public void SetEnv()
    {
        Append(@"classpath", tomcat_classpath);
    }
    private string tomcat_classpath = @"%CATALINA_HOME%\common\lib\servlet.jar;";

};